package com.example.math;

import java.util.List;
import java.util.Map;

/**
 * @author hej
 * @date 2025/7/8 9:44
 */
public class TenChange {
    public static void main(String[] args) {
        addEmcMac("000016BBED40");
    }
    public static void addEmcMac(String mac){

        long uu = Long.parseLong(mac, 16);
        System.out.println(uu);
        String result = Long.toHexString(uu).toUpperCase();
        System.out.println(result);
        String lastMac = result;
        for(int i = 0; i < 12 - result.length(); i++){
            lastMac = "0" + lastMac;
        }
        System.out.println(lastMac);
    }
}
